An Accurate Identifier Renaming Prediction and Suggestion Approach

نویسندگان

چکیده

Identifiers play an important role in helping developers analyze and comprehend source code. However, there exist many identifiers that are inconsistent with the corresponding code conventions or semantic functions, leading to flawed identifiers. Hence, need be regularly renamed. Even though researchers have proposed several approaches identify renaming further suggest correct for them, these only focus on a single limited number of granularities without universally considering all series sub-tokens composing completely generating new In this paper, we propose novel identifier prediction suggestion approach. Specifically, given set training code, first extract multiple granularities. Then, design five groups features from capture inherent properties themselves, relationships between as well other related entities, enclosing files, change history. By parsing history identifiers, can figure out whether specific been renamed not. These their used train Random Forest classifier, which predict needs Subsequently, renaming, entities Based intuition co-evolved relevant similar patterns sequences, could recommend those We conduct extensive experiments validate our approach both Java projects Android projects. Experimental results demonstrate average F-measure more than 89%, outperforms state-of-the-art by 8.30% 21.38% addition, achieves Hit@10 48.58% 40.97% suggesting 29.62% 15.75% respectively.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Overcoming the obfuscation of Java programs by identifier renaming

Decompilation is the process of translating object code to source code and is usually the first step towards the reverse-engineering of an application. Many obfuscation techniques and tools have been developed, with the aim of modifying a program, such that its functionalities are preserved, while its understandability is compromised for a human reader or the decompilation is made unsuccessful....

متن کامل

Object-Oriented Identifier Renaming Correction in Three-Way Merge

There are two traditional concurrency models among the source code management (SCM) systems: lock and merge models. The lock model prevents the concurrent modification on the same files, but the merge model allows the parallel editing, and performs a merge to reconcile the changes. A three-way merge engine is a usual part of SCM systems, some of them attempt to auto-merge the files, but sometim...

متن کامل

An Innovative Imputation and Classification Approach for Accurate Disease Prediction

Imputation of missing attribute values in medical datasets for extracting hidden knowledge from medical datasets is an interesting research topic of interest which is very challenging. One cannot eliminate missing values in medical records. The reason may be because some tests may not been conducted as they are cost effective, values missed when conducting clinical trials, values may not have b...

متن کامل

An Approach for Accurate Edging using Dynamic Membership Functions

In this paper, by means of fuzzy approaches, an accurate method is introduced for edging of color photographs. The difference between our method with other similar methods is the use of a morphological operation to think or thick the obtained edges. In this proposed method, a 3×3 window is dragged on the photo. For each block, 12 point sets will be defined, each including two non-overlapping po...

متن کامل

An Opinion-aware Approach to Contextual Suggestion

In this paper we describe our efforts for TREC Contextual Suggestion task. Our goal of this year is to evaluate the effectiveness of (1) an opinion-based method to model user profiles and rank candidate suggestions; and (2) a template-based summarization method that leverages the information from multiple resources to generate the description of a candidate suggestion. Existing approaches often...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: ACM Transactions on Software Engineering and Methodology

سال: 2023

ISSN: ['1049-331X', '1557-7392']

DOI: https://doi.org/10.1145/3603109